<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>日落登录</title>
    <style>
        :root {
            --sunset: #FF7E5F;
            --gold: #FEB47B;
            --pink: #FF6B6B;
        }
        
        body {
            margin: 0;
            height: 100vh;
            background: linear-gradient(to right, var(--gold), var(--sunset), var(--pink));
            font-family: 'Arial', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            animation: gradientBG 15s ease infinite;
            background-size: 400% 400%;
        }
        
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .sunset-card {
            width: 350px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        .sunset-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            z-index: -1;
        }
        
        h2 {
            color: var(--pink);
            text-align: center;
            margin-bottom: 30px;
            font-weight: 600;
        }
        
        .input-container {
            position: relative;
            margin-bottom: 30px;
        }
        
        input {
            box-sizing: border-box;
            width: 100%;
            padding: 15px 20px;
            background: rgba(255, 255, 255, 0.7);
            border: 2px solid var(--gold);
            border-radius: 50px;
            color: #333;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        input:focus {
            outline: none;
            border-color: var(--sunset);
            background: white;
        }
        
        label {
            position: absolute;
            left: 20px;
            top: 15px;
            color: var(--gold);
            transition: all 0.3s;
            pointer-events: none;
        }
        
        input:focus ~ label,
        input:valid ~ label {
            top: -10px;
            left: 15px;
            font-size: 12px;
            background: white;
            padding: 0 5px;
            color: var(--pink);
        }
        
        .sunset-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(to right, var(--sunset), var(--pink));
            border: none;
            border-radius: 50px;
            color: white;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        
        .sunset-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(255, 126, 95, 0.4);
        }
        
        .sun {
            position: absolute;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(255, 235, 205, 0.8), transparent 70%);
            border-radius: 50%;
            top: -50px;
            right: -50px;
            z-index: -1;
        }
        
        .ray {
            position: absolute;
            background: rgba(255, 235, 205, 0.5);
            animation: rayRotate 20s linear infinite;
            transform-origin: left center;
        }
        
        @keyframes rayRotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
</head>
<body>
    <div class="sun"></div>
    <div id="rays"></div>
    
    <div class="sunset-card">
        <h2>日落时分</h2>
        <div class="input-container">
            <input type="text" id="sunset-user" required>
            <label for="sunset-user">用户名</label>
        </div>
        <div class="input-container">
            <input type="password" id="sunset-pass" required>
            <label for="sunset-pass">密码</label>
        </div>
        <button class="sunset-btn">欣赏日落</button>
    </div>

    <script>
        // 创建阳光射线
        const raysContainer = document.getElementById('rays');
        for (let i = 0; i < 8; i++) {
            const ray = document.createElement('div');
            ray.classList.add('ray');
            ray.style.width = '150px';
            ray.style.height = '2px';
            ray.style.top = '50%';
            ray.style.left = '50%';
            ray.style.transform = `rotate(${i * 45}deg)`;
            ray.style.animationDelay = `${i * 0.5}s`;
            raysContainer.appendChild(ray);
        }
    </script>
</body>
</html>